<?php 
session_start();
define( 'SRC_EXEC', 1 );
define('SRCPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );

error_reporting(E_ALL ^ E_NOTICE); 

//echo SRCPATH_BASE;

require_once ( SRCPATH_BASE.DS.'mgm_config.php' );
require_once ( SRCPATH_BASE.DS.'mgm_application.php' );

//$AffApps = new AffApps();
//echo $AffApps->BASEurl();

$RSCconfig = new SRCconfig();
define('SRCWEB_BASE', SRCPATH_BASE.DS.'templates'.DS.$RSCconfig->src_layout);

/*if(empty($_REQUEST['ref'])) {
	require_once ( SRCPATH_BASE.DS.'home.php' );
}
else {*/
require_once ( SRCWEB_BASE.DS.'index.php' );

//include 'console.php';
//}

?>